package com.xmut.mall.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xmut.mall.store.dto.StoreSearchParams;
import com.xmut.mall.store.entity.StoreInfoEntity;
import com.xmut.mall.store.utils.RespBean;
import com.xmut.mall.store.vo.PageVO;

import java.util.Map;

public interface StoreInfoService extends IService<StoreInfoEntity> {

    /**
     * 检测当前用户是否申请过店铺
     * @param memberId
     * @return
     */
    RespBean checkUserStoreExists(Long memberId);

    /**
     * 根据params参数获取商铺审核的分页数据
     * @param params
     * @return
     */
    RespBean getShopAuditPageByParams(Map<String, Object> params);

    /**
     * 根据用户id获取商铺信息
     * @param memberId
     * @return
     */
    RespBean getShopStatusByMemberId(Long memberId);

    /**
     * 根据用户Id获取该用户的店铺信息
     * @param memberId
     * @return
     */
    RespBean getStoreInfoByMemberId(Long memberId);

    /**
     * 获取卖家店铺详情
     * @param storeId
     * @return
     */
    RespBean getStoreDetail(Long storeId);

    /**
     * 获取商城店铺列表分页数据
     * @param vo
     * @param params
     * @return
     */
    RespBean getStoreByPage(PageVO vo, StoreSearchParams params);
}
